<?php /* Smarty version 2.6.20, created on 2017-05-07 11:33:03
         compiled from mobile_question.htm */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "header.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<style>
    .input_group_input {
        background: none;
        width: 100%;
        padding: 0.8em 10px 0.8em 0.8em;
        box-sizing: border-box;
        height: 45px;
        font-size: 14px;
        color: #333;
        text-align: left;
    }
    input[type='password'] {
        border: none;
        outline: none;
    }
</style>
<body>
<header>
    <div class="header_top">
        <div class="st_back"><a href="javascript:window.history.back();"></a></div>
        <h1 class="tit">在线答疑</h1>
        <a class="top_user_reg" href="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/login.php">登录</a>
    </div>
</header>
 <div class="mid_content">
        <div class="st_user_box">
           
                <form action="" method="post" onsubmit=" return check_data();">
                  <input type="hidden" name="m" value="product" />
                    <input type="hidden" name="s" value="mobile_question" />
                <input type="hidden" name="pid" value="<?php echo $this->_tpl_vars['id']; ?>
" />
                   
                <div class="login_page clearfix number_password">
                    <p>
                    <textarea class="username" name="content" style=" background:#fff;" placeholder="请输入问题"></textarea>
                    </p>
                    <p><strong>验证码：</strong></strong><input type="text" class="yzm_txt focus" id="code" name="code"  value="" placeholder="验证码"   />
                        <span><img src="<?php echo $this->_tpl_vars['config']['weburl']; ?>
/includes/rand_func.php?rand=<?php echo $this->_tpl_vars['now_time']; ?>
" style="cursor:pointer;margin-top: 6px;margin-left: 2px" onClick="this.src=this.src+'?rand='+Math.random()" title="点击我更换图片" alt="点击我更换图片"></span>
                    </p>

                </div>
                <p  class="submit_btn"><input class="login_in" name="" type="submit" value="提交"></p>
            </form>

         

        

</div>
</div>

<script type="application/javascript">
    function check_data(){
        var content = $("[name='content']").val();
        var code   = $("#code").val();
    
        if(content == ''){
            alert('请输入内容');
            return false;
        } else if( code == ''){
 			alert('请输入验证码');
            return false;
        } else {
            return true;
        }

    }

  
</script>

<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "footer.htm", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>